package com.evildog.workspace.life.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.life.application.dto.PhotoListDTO;
import com.evildog.workspace.life.application.dto.PhotoPageDTO;
import com.evildog.workspace.life.application.entity.Photo;
import com.evildog.workspace.life.application.entity.PhotoListDO;
import com.evildog.workspace.life.application.entity.PhotoPageDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * photo Mapper 接口
 * </p>
 *
 * @author evildog
 * @since 2020-08-02
 */
public interface PhotoMapper extends BaseMapper<Photo> {

    /**
    * 自定义分页
    */
    IPage<PhotoPageDO> getPageList(IPage<PhotoPageDO> page, @Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") PhotoPageDTO pageDTO);

    /**
    * list
    */
    List<PhotoListDO> getList(@Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") PhotoListDTO param);

}
